{extend name="base" /}

<!-- 页面内容 -->
{block name="content"}
    <div class="page-header">
        <h1>个人资料</h1>
    </div>
    <div class="row">
        <div class="col-xs-12 col-sm-3 center">
            <span class="profile-picture">
                <img class="editable img-responsive" alt="Alex's Avatar" id="avatar2" src="__STATIC__/admin/images/avatars/profile-pic.jpg" />
            </span>
        </div><!-- /.col -->

        <div class="col-xs-12 col-sm-9">
            <h4 class="blue">
                <span class="middle">{$userinfo.username}</span>

                <span class="label label-success arrowed-in-right">
                    <i class="ace-icon fa fa-circle smaller-80 align-middle"></i>
                    超级管理员
                </span>
            </h4>

            <div class="profile-user-info">
                <div class="profile-info-row">
                    <div class="profile-info-name"> 昵称 </div>

                    <div class="profile-info-value">{$userinfo.nickname}</div>
                </div>

                <div class="profile-info-row">
                    <div class="profile-info-name"> 电子邮箱 </div>

                    <div class="profile-info-value">{$userinfo.email}</div>
                </div>

                <div class="profile-info-row">
                    <div class="profile-info-name"> 最后登陆IP </div>

                    <div class="profile-info-value">
                        <span>{$Think.session.last_login_ip}</span>
                    </div>
                </div>

                <div class="profile-info-row">
                    <div class="profile-info-name"> 最后登陆时间 </div>

                    <div class="profile-info-value">
                        <span>{$Think.session.last_login_time|date="Y-m-d H:i",###}</span>
                    </div>
                </div>
            </div>
            <div class="hr hr-8 dotted"></div>
            <p class="text-center"><a class="btn btn-xs btn-primary" href="{:url('Admin/profile_edit')}">修改</a></p>
        </div><!-- /.col -->
    </div><!-- /.row -->
{/block}